package com.sgfm.util;

public class XmlDataUtils {

	public static String getValueByName(String data, String node) {

		int start = data.indexOf("<" + node + ">");
		int end = data.indexOf("</" + node + ">");
		int flase = -1;
		if (flase != start && flase != end) {
			start += new String("<" + node + ">").length();
			return data.substring(start, end);
		}
		return null;
	}
}
